package com.ibiaoke.order.service;

import com.ibiaoke.customer.entity.Customer;
import com.ibiaoke.order.entity.Order;
import com.ibiaoke.order.entity.PtOrder;
import com.ibiaoke.order.entity.so.SubmitOrderSO;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

public interface PtPayOrderService {

    //微商城——微信支付
    @Transactional
    Map<String, String> payOrderByWeChat(Integer orderId,String openId);

    //微商城——支付宝支付
    @Transactional
    String  payOrderByAliPay(Integer orderId);

    //App微信支付
    @Transactional
    Map<String, Object> payOrderByAppWeChat(Integer orderId,String ip);

    //App支付宝支付
    @Transactional
    String payOrderByAppAliPay(Integer orderId);

    //预付款支付
    void payOrderByDepositPay(Integer orderId, String smsCode);

    //校验订单
    void validate(PtOrder ptOrder);
}
